import request from '@/utils/request.js'

export default {
  // 登录
  login(loginInfo) {
    return request({
      url: `/educenter/ucenter/login`,
      method: 'post',
      data: loginInfo
    })
  },

  // 根据token获取用户信息
  getLoginInfo(token) {
    return request({
      url: `/educenter/ucenter/getUserInfo`,
      method: 'post',
      data: token
    })
  },
  getWxCode(){
    return request({
      url: `/api/ucenter/wx/getWxCode`,
      method: 'get'
    })
  }

}
